<?php
include_once 'ZCollection.php';

class ZLeadCollection extends ZCollection {
    /**
     * Get number of leads
     * @return int Number of messages
     */
    public function count(){
        return count($this->items);
    }

    /**
     * Get Message Item Index
     * @param $index
     * @return ZLeadItem
     */
    public function getIndex($index){
        return $this->items[$index];
    }

    /**
     * Add a message
     * @param $item ZLeadItem
     */
    public function addItem($item){
        $this->items[] = $item;
    }

    /**
     * Get array of items
     * @return ZLeadItem[]
     */
    public function getItems() {
        return $this->items;
    }
}?>